/**
 * @ClassName: HttpSdk
 * @Description: java类作用描述
 * @Author: zdl
 * @Date: 2022/3/17 9:21
 */
package com.example.a_lib.http;

import android.app.Application;

import okhttp3.Interceptor;

/**
 * @ClassName: HttpSdk
 * @Description: java类作用描述
 * @Author: zdl
 * @Date: 2022/3/17 9:21
 */
public class HttpSdk {

    /**
     * 增加全局拦截器
     *
     * @param interceptor
     */
    public static void addInterceptor(Application application,Interceptor interceptor) {
        ComponentsClient2.Companion.init(application)
                .addInterceptor(interceptor)
                .create();
    }


}
